package com.example.spring;

import com.example.spring.others.Cat;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class Application {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(Application.class, args);

        //通过beanPost修改完成以后的cat bean
        Cat cat = (Cat) run.getBean("cat");
        cat.say();

    }
}
